package com.codi.jobservice.job;

import com.codi.base.spring.SpringContextHolder;
import com.codi.bus.core.service.impl.PortfolioDividentServie;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * Created by asus on 2018/4/17.
 * 刷组合分红方式
 */
@Slf4j
@DisallowConcurrentExecution
public class RefreshPortfolioDividendJob extends QuartzJobBean {
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("refresh portfolio dividend ");

        PortfolioDividentServie fundBasicJobService = SpringContextHolder.getBean(PortfolioDividentServie.class);
        fundBasicJobService.dividentTypeQuery();
    }
}
